package org.wechat4j.model;

/**
 * @author bjliuyong
 * @version 1.0
 * @created date 16-11-11
 * url https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433747234&token=&lang=zh_CN
 */
public final class ErrorCode {



    public static final int SYSTEM_BUSY    = -1     ;//系统繁忙，此时请开发者稍候再试
    public static final int REQUEST_OK     = 0      ;//请求成功

    //接口调用超过限制
    public static final int reach_max_api_daily_limit = 45009 ;

    //不合法的OpenID，请开发者确认OpenID（该用户）是否已关注公众号，或是否是其他公众号的OpenID
    public static final int invalid_openid = 40003  ;
    public static final int invalid_appid  = 40013  ;

    /**
     * 模板消息 相关错误代码
     */
    public static final int invalid_template_id            = 40037  ;
    public static final int change_template_too_frequently = 43100  ;

    /**
     * 统计分析， 相关错误代码
     */
    public static final int date_range_error               = 61501  ;

    public static String getMsg(int code) {
        switch (code){
            case change_template_too_frequently :
                return "修改模板太频繁" ;

        }
        return "";
    }
}
